package com.web.atmt.service;

import java.io.IOException;
import java.sql.SQLException;
import java.util.List;

import com.web.atmt.bean.Attachment;
import com.web.atmt.bean.AttachmentType;
import com.web.base.service.BaseService;

public interface AttachmentService extends BaseService {
	
	public AttachmentType getAttachmentType(String typeId) throws SQLException, IOException;
	
	public List<Attachment> loadAttachment(String otherId, String typeId) throws SQLException, IOException;

	public String getUploadPath(String typeId) throws SQLException, IOException;

	public void addAttachment(String fileId, String fileName, String fileType, Integer fileSize, String saveName,
	        String otherId, String typeId) throws SQLException, IOException;

	public List<Attachment> getRemoveFile(String fileIds) throws SQLException, IOException;
	
	public void removeAttachment(String fileIds) throws SQLException, IOException;

	public Attachment getDownloadFile(String fileId) throws SQLException, IOException;

}
